/*
 * Copyright (c) 2018.
 * This file was written by Fancyears·Milos·Malvis @connor. Any question/bug you can't post to 1243093366@qq.com.
 * ALL RIGHTS RESERVED.
 */
package org.fancyears.service.impl;

import java.util.Collections;
import java.util.List;

import org.fancyears.dao.TestDao;
import org.fancyears.pojo.Test;
import org.fancyears.proxy.ServiceProxy;
import org.fancyears.service.TestService;

/**
 * @author: Fancyears·Milos·Malvis
 * @CreateDate: 2019年1月17日 上午9:57:20
 * @Description:
 */
public class TestServiceImpl implements TestService {

	public TestDao testDao;
	@SuppressWarnings("unused")
	private static TestService service;

	public TestServiceImpl() {
		ServiceProxy.doProxy(this);
	}

	@Override
	public List<Test> queryList(Test record) throws Exception {
		System.out.println("开始查询");
		List<Test> res = Collections.singletonList(testDao.selectByPrimaryKey(record));
		return res;
	}

	public static void main(String[] args) throws Throwable {
		TestServiceImpl service = new TestServiceImpl();
		service.queryList(null);
		System.out.println();
	}

}
